import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/routes.dart';

class AsyncWidgets extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('异步 Widgets'),
        centerTitle: true,
      ),
      body:Column(
        children: [
          ItemButton('FutureBuilder(基于与Future交互的最新快照来构建自身的widget)', futuerbuilder),
          ItemButton('StreamBuilder(基于与流交互的最新快照构建自身的widget)','' )

        ],
      ),
    );
  }

}